package com.dropdb.demo.bean.bo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class AdminAdminListBO {
    @NotNull(message = "页数不能为空")
    @Min(value = 1, message = "页数不能小于1")
    private Integer page;

    @NotNull(message = "条数不能为空")
    @Min(value = 1, message = "条数不能小于1")
    private Integer limit;

    private String username;

    @NotBlank(message = "参数非法")
    private String sort;

    @NotBlank(message = "参数非法")
    private String order;
}
